var table;
layui.use('table', function(){
    table = layui.table
        ,form = layui.form;
    table.render({
        elem: '#test'
        ,url:"/getProductSales?supplier=&newpr=null"
        // ,cellMinWidth: 80
        ,title: '统计'
        ,totalRow: true
        ,cols: [[
            {type:'numbers'}
            // ,{type: 'checkbox'}
            ,{field:'productName', title:'产品名称', width:180, sort: true}
            ,{field:'guigeName', title:'规格名称', width:180, sort: true}
            ,{field:'m1', title:'1月', width:90}
            ,{field:'m2', title:'2月', width:90}
            ,{field:'m3', title:'3月', width:90}
            ,{field:'m4', title:'4月', width:90}
            ,{field:'m5', title:'5月', width:90}
            ,{field:'m6', title:'6月', width:90}
            ,{field:'m7', title:'7月', width:90}
            ,{field:'m8', title:'8月', width:90}
            ,{field:'m9', title:'9月', width:90}
            ,{field:'m10', title:'10月', width:90}
            ,{field:'m11', title:'11月', width:90}
            ,{field:'m12', title:'12月', width:90}
            ,{field:'allCount', title:'总数量', width:110, sort: true}
        ]]
        ,page: true
        ,limit:15
        ,limits: [15,30,60,100,150]
        ,id: 'testReload'
    });
});


